//
//  Service+Comment.h
//  gskin
//
//  Created by fengyn on 15/12/15.
//  Copyright © 2015年 lexingsoft. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ServiceManager.h"

@interface ServiceManager(Comment)
///查看评论
+ (void)serviceComment:(NSUInteger)pageIndex string:(NSString *)string success:(void(^)(NSDictionary * data)) success failure:(void(^)()) failure;
///发送评论
+ (void)postCreateComment:(NSString *)NBR commentBody:(NSString *)commentBody orderSn:(NSString *)orderSn success:(void(^)(NSDictionary * data)) success failure:(void(^)()) failure;
///根据订单号获取该订单评论
+ (void)getCommentWithOrderSn:(NSString *)orderSn success:(void(^)(NSDictionary * data)) success failure:(void(^)()) failure;
///根据帖子Id获取评论
+ (void)getCommentWithTargetId:(NSString *)targetId pageIndex:(NSUInteger)pageIndex success:(void(^)(NSDictionary * data)) success failure:(void(^)()) failure;
///对问答进行评论
+ (void)createQuestionrWithtargetId:(NSString *)targetId body:(NSString *)body success:(void(^)(NSDictionary * data)) success failure:(void(^)()) failure;
///对日记进行评论
+ (void)createDairyrWithtargetId:(NSString *)targetId body:(NSString *)body success:(void(^)(NSDictionary * data)) success failure:(void(^)()) failure;
///对帖子进行评论
+ (void)createCommentWithTargetId:(NSString *)targetId body:(NSString *)body success:(void(^)(NSDictionary * data)) success failure:(void(^)()) failure;
///对学员进行评星
+ (void)createStudentsClassCommentWithOrderSn:(NSString*)orderSn userId:(NSString*)userId workerId:(NSString*)workId courseCode:(NSString *)courseCode starScore:(NSDictionary *)starScore success:(void(^)(NSDictionary * data)) success failure:(void(^)()) failure;

@end
